<!DOCTYPE html>
<html>
  <head>
    <script src="../../../processing.js"></script>
    <link rel="stylesheet" href="../../style.css" />
  </head>
  <body>
    <h1>triangle() test in a 3D context</h1>

    <p>
    <canvas datasrc="triangle-3d.pjs" width="100" height="100"></canvas>
    <img src="p5_result.png" style="margin: 10px 0;"/>
    </p>

    <pre>
size(100, 100, P3D);
background(200);
box(10);
triangle(30, 75, 58, 20, 86, 75);
    </pre>
  </body>
</html>